To use RapidSpellWInline to spell check a text box; add the control to the form with the text box, set the TextComponentID property to the ID of the text box, and set the RapidSpellWInlineHelperPage property to the URL of a page holding the RapidSpellWInlineHelper control (this page needs nothing other than the RapidSpellWInlineHelper control on it).
<%@ Register TagPrefix="rapidspellweb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb" %> <%@ Page language="c#" AutoEventWireup="false" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 135px; POSITION: absolute; TOP: 32px" runat="server" Width="330px" TextMode="MultiLine" Height="162px"></asp:TextBox> <RapidSpellWeb:RapidSpellWInline id="RapidSpellWInline1" style="Z-INDEX: 102; LEFT: 366px; POSITION: absolute; TOP: 210px" runat="server" TextComponentID="TextBox1" RapidSpellWInlineHelperPage="rswihelper.aspx"> <Button BorderWidth="" BorderColor="" ForeColor="" BackColor="" Height="" Width="" CssClass="" type="button" value="Spell Check" ID="RapidSpellWInline1__ctl0"></Button> </RapidSpellWeb:RapidSpellWInline> </form> </body> </HTML>
The code above requires a page holding RapidSpellWInlineHelper, create one called rswihelper.aspx containing the following;
<%@ Page language="c#" AutoEventWireup="false" validateRequest="false"%> <%@ Register TagPrefix="rapidspellweb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <body> <form id="Form1" method="post" runat="server"> <RapidSpellWeb:RapidSpellWInlineHelper id="rswi1" runat="server"/> </form> </body> </HTML>